//
//  ShellCoinDetailViewController.m
//  ShellWallert
//
//  Created by lvzhao on 2020/5/10.
//  Copyright © 2020 VV. All rights reserved.
//

#import "ShellCoinDetailViewController.h"
#import "ShellCoinDetailView.h"
#import "ShellCoinDetailViewModel.h"

@interface ShellCoinDetailViewController ()

@property (nonatomic,strong) ShellCoinDetailView *detailView;

@property (nonatomic,strong) ShellCoinDetailViewModel *viewModel;

@end

@implementation ShellCoinDetailViewController



- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupUI];
}


#pragma mark - setupUI
- (void)setupUI{
    [self.view addSubview:self.detailView];
    [self.detailView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.mas_equalTo(0);
    }];


}

#pragma mark - actions

#pragma mark - custool

#pragma mark - get && set
- (ShellCoinDetailView *)detailView{

    if(!_detailView){
        _detailView = [[ShellCoinDetailView alloc] initViewModel:self.viewModel];
    }
    return _detailView;
}

- (ShellCoinDetailViewModel *)viewModel{
    if(!_viewModel){
        _viewModel = [[ShellCoinDetailViewModel alloc] init];
        _viewModel.coinModel = self.coinModel;
    }
    return _viewModel;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
